<template>
	<!-- <el-button class="mb20" @click="add" type="primary">新增</el-button> -->
	<el-form :inline="true" class="demo-form-inline">
		<el-form-item label="总人数">
		  <h1 style="margin: 0;line-height: 1;margin-right: 15px;">{{counts}}</h1> 
		 </el-form-item>
		 
		<!-- <el-form-item label="分类筛选">
			
			<el-select v-model="selectData" placeholder="请选择">
				<el-option label="全部学院" :value="null"></el-option>
				<el-option label="常州工学院" :value="1"></el-option>
				<el-option label="江苏理工学院" :value="2"></el-option>
				
			</el-select>
		</el-form-item> -->
		<!-- <el-form-item>
		   <el-button @click="getData" type="primary" >搜索</el-button>
		 </el-form-item> -->
	</el-form>
	<el-table class="mb20" :data="tableData" border style="width: 100%">

		<el-table-column prop="name" label="姓名" />
		
		
		<el-table-column prop="wenti" label="问题" />

	</el-table>
	<!-- <el-pagination background layout="prev, pager, next" :total="1000">
	</el-pagination> -->

</template>

<script >
	import {
		ElMessageBox,
		ElMessage
	} from 'element-plus'
	export default {
		data() {
			return {
				keyword:"",
				selectData:null,
				
				formLabelWidth: '120rpx',
				form: {
					name: '',
					nametype: '1',
					daan: "1",
					static: "1"
				},
				counts:0,
				rules: {
					name: [{
						required: true,
						message: '请填写题目名称',
						trigger: 'blur',
					}],
					orders: [{
						required: true,
						message: '请填写题目排序',
						trigger: 'blur',
					}],
				},
				pid: []
			}
		},
		mounted() {
			this.getData();
		},
		methods: {
			schange(val) {
				if (val == 1) {
					this.form.daan = "1"
				}
				if (val == 2) {
					this.form.daan = "A"
				}
				if (val == 3) {
					this.form.daan = ""
				}
			},
			getData() {
				var obj;
				if(this.selectData==null){
					obj = {cgy:"",lg:"",}
				}
				if(this.selectData==1){
					obj = {cgy:"江苏理工学院",lg:"",}
				}
				if(this.selectData==2){
					obj = {cgy:"",lg:"常州工学院",}
				}
				this.$http.post("/index.php/index/Userinfo/tiwenlist",{tokenid:'nf2021113012336899abc'}).then(data => {   
					this.tableData = data.data;
					this.counts=data.counts;
				})
			},

			handleAvatarSuccess(file) {

				this.form.image = file.data;
			},



		}
	}
</script>
